<!DOCTYPE html>
<html>
<head>
	<title>我的书架·忆书</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<meta content="yes" name="apple-mobile-web-app-capable">
	<meta content="yes" name="apple-touch-fullscreen">
	<meta content="telephone=no,email=no" name="format-detection">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/normalize.css" type="text/css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/book.css" type="text/css">
	<link rel="stylesheet" type="text/css" href="__ROOT__/Apps/WebApp/View/default/css/tipdisapply.css">
	<link rel="stylesheet" href="__ROOT__/Apps/WebApp/View/default/css/small_page.css" type="text/css">
	<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/jisuan.js"></script>
	<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/jquery-1.7.2.min.js"></script>

<style type="text/css">
	.zhao{
		z-index: 998;
		}
	.zhezhao{
		position: absolute;
		left:0;
		top:0;
		width:100%;
		height: 100%;
		background: rgba(0,0,0,0.50);
		z-index: 99;
		display: block;
	}
	.yibook{
		width: 1.066667rem;
		height:1.066667rem;
		border-radius: 50%;
		position: absolute;
		top:2.666667rem;
		left:4.453333rem;
		z-index: 999;
	}
	.weibo{
		width: 1.8666666rem;
		height:1.8666666rem;
		border-radius: 50%;
		top:2.666667rem;
		left:4.453333rem;
		display: none;
		position: absolute;
	}
	.weixin{
		width: 1.8666666rem;
		height:1.8666666rem;
		border-radius: 50%;
		/*top: 0;
		left:3.333333rem;*/
		top:2.666667rem;
		left:4.453333rem;
		display: none;
		position: absolute;

	}
	.qq{
		width: 1.8666666rem;
		height:1.8666666rem;
		border-radius: 50%;
		top: 0;
		left:5.333333rem;
		top:2.666667rem;
		left:4.453333rem;
		display: none;
		position: absolute;

	}
	.photo{
		width: 1.8666666rem;
		height:1.8666666rem;
		border-radius: 50%;
		/*top: 1.28rem;
		left:6.64rem;*/
		top:2.666667rem;
		left:4.453333rem;
		display: none;
		position: absolute;

	}
	.five{
		width:100%;
		height:4.266667rem;
		position:fixed;
		bottom:0;
		left:0;

	}
	.zhao{
		width:100%;
		height:100%;
		display: none;
		position: fixed;
		bottom: 0;
		left:0;
		z-index: 999;
	}
	html,body{
		width:100%;
		height:100%;
	}
	.main{
		width:100%;
		height:auto;
		padding-bottom: 1.6rem;
	}
	.photos{
		width:100%;
		height:100%;
		position: fixed;
		z-index:9999;
		bottom: 0;
		left:0;
	}
	.photo_container{
		width:200px;
		height:120px;
		background:#fff;
		position: absolute;
		z-index:9999;
		top:50%;
		left:50%;
		margin-left:-100px;
		margin-top:-30%;
		border-radius: 5px;
	}
	.photo_zhao{
		width:100%;
		height:100%;
		background:#9D9D9D;
		opacity: 0.5;
	}
	.photo_top{
		width:100%;
		height:69px;
		border-bottom: 1px solid #ddd;
		color:#9D9D9D;
		line-height: 70px;;
		text-align: center;
	}
	.photo_left{
		width:99px;
		height:50px;
		border-right: 1px solid #ddd;
		line-height: 50px;
		text-align: center;
		color:#9D9D9D;
		float: left;
	}
	.photo_right{
		border-right:0;
	}
	.photo_color{
		color:#0e8ee7;
	}
	.return_center{
		margin-right: 0.8rem;
	}
	.return_left {
		float: left;
	}
	.return_center_color{
		opacity: 0.6;
	}
	.uploadimg{
		position:relative;
		margin-top:-15%;
	}
	.imgbox1 {
		width: 3.06rem;
	    height: 1.96rem;
	    position: absolute;
	    top: 1.6rem;
	    left: 0.1rem;
	    overflow: hidden;
	    background-color: #fff;
	}
	.imgbox2 {
		width: 2.8rem;
	    height: 2.9rem;
	    position: absolute;
	    top: 0.02rem;
	    left: 0.46rem;
	    overflow: hidden;
	    background-color: #fff;
	}
	.imgbox3 {
		width: 2.15rem;
	    height: 3.12rem;
	    position: absolute;
	    top: 0.5rem;
	    left: 0.3rem;
	    overflow: hidden;
	    background-color: #fff;
	}
	.look_tutorial{
		width: 3.053333rem;
	    height: 0.826667rem;
	    border-radius: 0.053333rem;
	    float: right;
	    margin-left: 1rem;
	}
	.readme{
		text-align: right;
		color: rgb(106,106,106);
		font-size: 0.32rem;
	}
	.shape_0{ 	/*长图	width/height	*/
		position: absolute; 
		height: 100%;
		left: 50%;
		top: 0;
		transform: translate(-50%);
	}
	.shape_1{ 	/*方图*/
		position: absolute; 
		height: 100%;
		/*width: 100%;*/
		left: 50%;
		top: 0;
		transform: translate(-50%);
	}
	.shape_2{ 	/*横图*/
		position: absolute; 
		width: 100%;
		left: 0;
		top: 50%;
		transform: translate(0,-50%);
	}
	.nobuy{
		float: left;
	}
</style>
</head>
<body>
	<div class="container">
	<div class="zhao">
		<header class="zhezhao">
			<div class="five">
				<div class="yibook">
					<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_new_book_icon_nor.png" style="width:100%;height:100%;">
					<a style="display:inline-block;width:1.866667rem;height:0.426667rem;font-size:0.32rem;color:#fff;position:relative;left:-0.133333rem">选择忆书</a>
				</div>
				<div class="weibo" onclick="wbbook()">
					<img src="__ROOT__/Apps/WebApp/View/default/images/new_book_weibo_btn_nor.png" style="width:100%;height:100%;">
				</div>
				<div class="weixin" onclick="wxbook()">
					<img src="__ROOT__/Apps/WebApp/View/default/images/new_book_wechat_btn_nor.png" style="width:100%;height:100%;">
				</div>
				 <div class="qq" onclick="qqbook()">
					 <img src="__ROOT__/Apps/WebApp/View/default/images/new_book_qq_btn_nor.png" style="width:100%;height:100%;top:63.7%;left:42.5%;">
				 </div>
				<div class="photo" onclick="phbook()">
					<img src="__ROOT__/Apps/WebApp/View/default/images/new_book_photo_btn_nor.png" style="width:100%;height:100%;">
				</div>
			</div>
		</header>
	</div>
		<main class="main">
			<if condition="$wxbook['bookId'] neq null">
			<section class="clear">
				<div class="main-left" onclick="wxedit({$wxbook['bookId']})">
					<div class="imgbox1"></div>
					<div class="center">

						<div class="{$wxbook['css1']}">
							<div class="textname">

								<h4 style="text-align:right;font-family: fzxsjt;color: #3C3C3C;font-weight:normal;font-size:0.213333rem;">{$wxbook['bookname']}</h4>
								<p style="text-align:right;color:#3C3C3C;font-family: fzxsjt;">{$wxbook['name']}·作品</p>
							</div>
						</div>

						<div class="{$wxbook['css2']}">
							<div class="bookimg">
								<if condition="strpos($wxbook['wximg'],'load') neq false">
									<img src="__ROOT__/{$wxbook['wximg']}" class="shape_{$wxbook['shape']}" alt="2">
								<else/>
									<img src="__ROOT__/{$wxbook['wximg']}" class="img absolute alt none" alt="2">
								</if>

							</div>

						</div>
						<div class="booktext">优忆库-出品</div>
					</div>


				</div>

				<div class="main-right">
					<div class="main-right-top">
						<div class="icon"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_wechat_icon_nor.png" style="width:100%;height:100%;"></div>
						<div class="bookname">
							<a style="font-size:0.426667rem;color:#000;display:inline-block;margin-bottom:0.133333rem;">{$wxbook['name']}微信书</a><br>
							<am class="wxpage" style="font-size:0.266667rem;color: #646464;">共{$wxbook['page']}页</am>
							<p style="font-size:0.266667rem;color: #3B3B3B;padding-top:0.133333rem;">修改于{$wxbook['wxyear']}年{$wxbook['wxmonth']}月{$wxbook['wxday']}日<span id="wxnumber" onclick="wxopenArea()"  style="color: #039BE5;display:inline-block;padding-left:0.133333rem">更新</span></p>
						<input class="wxNum" type="hidden" value="{$wxbook['wxNumber']}">
							<div class="photos wxredobook" style="display:none">
								<div class="photo_zhao"></div>
								<div class="photo_container">
									<div class="photo_top mui-pull-left">是否确认更新</div>
									<div class="photo_left mui-pull-left photo_color" onclick="wxredo()">确定</div>
									<div class="photo_left photo_right mui-pull-left" onclick="wxcloseArea();">取消</div>

								</div>
							</div>
						</div>
					</div>
					<div class="main-right-bot">
						<div class="button clear wxbutton">
						<div class="buy" onclick="wxbuy({$wxbook['wxgoodsId']},this)">
							<!--<input type="hidden" id="goodsId" value="{$wxgoodsId}">-->
							<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_buy_btn_nor.png" style="width:100%;height:100%;"></div>
						<div class="edit" onclick="wxedit({$wxbook['bookId']})"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_edit_btn_nor.png" style="width:100%;height:100%;"></div>
						</div>
					</div>
				</div>
			</section></if>
			<foreach name="qqimg" item="vq" key="kq">
			<section class="clear">
				<div class="main-left" onclick="qqedit({$vq['qqbookId']},this)">
					<!--<img src="__ROOT__/{$vq.image}" style="width:100%;height:100%;">-->
					<div class="center">

						<div class="{$vq.css1}">
							<div class="textname">

								<h4 style="text-align:right;font-family: fzxsjt;color: #3C3C3C;font-weight:normal;font-size:0.213333rem;">{$vq.bookname}</h4>
								<p style="text-align:right;color:#3C3C3C;font-family: fzxsjt;">{$vq.name}·作品</p>
							</div>
						</div>

						<div class="{$vq.css2}">
							<div class="bookimg">
								<if condition="strpos($vq['image'],'pload') neq false">
									<img src="__ROOT__/{$vq.image}" class="img absolute alt none uploadimg" alt="2">
								<else/>
									<img src="__ROOT__/{$vq.image}" class="img absolute alt none" alt="2">
								</if>

							</div>

						</div>
						<div class="booktext">优忆库-出品</div>
					</div>


				</div>
				<div class="main-right">
					<div class="main-right-top">
						<div class="icon"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_qq_icon_nor.png" style="width:100%;height:100%;"></div>
						<div class="bookname">
							<a style="font-size:0.426667rem;color:#000;display:inline-block;margin-bottom:0.133333rem;">{$vq.name}说说空间书</a><br>
							<am class="qqpage_{$kq}" style="font-size:0.266667rem;color: #646464;">共{$vq['page']}页</am>
							<p style="font-size:0.266667rem;color: #3B3B3B;padding-top:0.133333rem;">修改于{$vq.qqyear}年{$vq.qqmonth}月{$vq.qqday}日<a onclick="qqopenArea({$kq})" id="qqtext_{$kq}" style="color: #039BE5;display:inline-block;padding-left:0.133333rem">更新</a></p>
							<div class="photos qqredobook_{$kq}" style="display:none">
								<div class="photo_zhao"></div>
								<div class="photo_container">
									<div class="photo_top mui-pull-left">是否确认更新</div>
									<div class="photo_left mui-pull-left photo_color" onclick="qqredo({$vq['qqbookId']},{$kq})">确定</div>
									<div class="photo_left photo_right mui-pull-left" onclick="qqcloseArea({$kq});">取消</div>

								</div>
							</div>
						</div>
					</div>
					<div class="main-right-bot">
						<div class="button clear qqbutton_{$kq}">
						<div class="buy" onclick="wxbuy({$vq['qqgoodsId']},this)"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_buy_btn_nor.png" style="width:100%;height:100%;"></div>
						<div class="edit" onclick="qqedit({$vq['qqbookId']},this)"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_edit_btn_nor.png" style="width:100%;height:100%;"></div>
						</div>
					</div>
				</div>
			</section>
			</foreach>
				<foreach name="wbimg" item="vb" key="kb">
				<section class="clear">
				<div class="main-left" onclick="wbedit({$vb['wbbookId']},this)">
					<!--<img src="__ROOT__/{$vb.image}" style="width:100%;height:100%;">-->
					<div class="center">

						<div class="{$vb.css1}">
							<div class="textname">

								<h4 style="text-align:right;font-family: fzxsjt;color: #3C3C3C;font-weight:normal;font-size:0.213333rem;">{$vb.bookname}</h4>
								<p style="text-align:right;color:#3C3C3C;font-family: fzxsjt;">{$vb.name}</p>
							</div>
						</div>

						<div class="{$vb.css2}">
							<div class="bookimg">
								<if condition="strpos($vb['image'],'pload') neq false">
									<img src="__ROOT__/{$vb.image}" class="shape_{$vb['shape']}" alt="2">
								<else/>
									<img src="__ROOT__/{$vb.image}" class="img absolute alt none" alt="2">
								</if>

							</div>

						</div>
						<div class="booktext">优忆库-出品</div>
					</div>


				</div>
				<div class="main-right">
					<div class="main-right-top">
						<div class="icon"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_weibo_icon_nor.png" style="width:100%;height:100%;"></div>
						<div class="bookname">
							<a style="font-size:0.426667rem;color:#000;display:inline-block;margin-bottom:0.133333rem;">{$vb.name}微博书</a><br>
							<am class="wbpage_{$kb}"style="font-size:0.266667rem;color: #646464;">共{$vb['page']}页</am>
							<p style="font-size:0.266667rem;color: #3B3B3B;padding-top:0.133333rem;">修改于{$vb.wbyear}年{$vb.wbmonth}月{$vb.wbday}日<a onclick="wbopenArea({$kb})" id="wbtext_{$kb}" style="color: #039BE5;display:inline-block;padding-left:0.133333rem">更新</a></p>
							<div class="photos wbredobook_{$kb}" style="display:none">

								<div class="photo_container">
									<div class="photo_top mui-pull-left">是否确认更新</div>
									<div class="photo_left mui-pull-left photo_color" onclick="wbredo({$vb['wbbookId']},{$kb})">确定</div>
									<div class="photo_left photo_right mui-pull-left" onclick="wbcloseArea({$kb});">取消</div>

								</div>
							</div>
						</div>
					</div>
					<div class="main-right-bot">
						<div class="button clear wbbutton_{$kb}">
						<div class="buy" onclick="wxbuy({$vb['wbgoodsId']},this)">
							<!--<input type="hidden" id="goodsId" value="{$vb.wbgoodsId}">-->
							<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_buy_btn_nor.png" style="width:100%;height:100%;"></div>
						<div class="edit" onclick="wbedit({$vb['wbbookId']},this)"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_edit_btn_nor.png" style="width:100%;height:100%;"></div>
						</div>
					</div>
				</div>
			</section></foreach>
			<foreach name="bookMsg" item="vp">
				<section class="clear">
					<div class="main-left" onclick="phOpen({$vp['photoBookId']})">
						<div class="photo_book">
							<if condition="$vp['coverId'] eq 1"><if condition="$vp['personImg']"><div class="imgbox1"><img src="__ROOT__/{$vp['personImg']}" class="shape_{$vp['shape']}"></div></if></if>
							<if condition="$vp['coverId'] eq 2"><if condition="$vp['personImg']"><div class="imgbox2"><img src="__ROOT__/{$vp['personImg']}" class="shape_{$vp['shape']}"></div></if></if>
							<if condition="$vp['coverId'] eq 3"><if condition="$vp['personImg']"><div class="imgbox3"><img src="__ROOT__/{$vp['personImg']}" class="shape_{$vp['shape']}"></div></if></if>
							<img src="__ROOT__/{$vp.cover}" class="img">
							<div class="mian1_header {$vp.css1}">{$vp.bookName}</div>
							<div class="mian1_bottom {$vp.css2}">{$vp.title}</div>
						</div>
					</div>
					<div class="main-right">
						<div class="main-right-top">
							<div class="icon"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_photo_icon_nor.png" style="width:100%;height:100%;"></div>
							<div class="bookname">
								<a style="font-size:0.426667rem;color:#000;display:inline-block;margin-bottom:0.133333rem;">{$vp.author}照片书</a><br>
								<am style="font-size:0.266667rem;color: #646464;">共{$vp.page}页</am>
								<p style="font-size:0.266667rem;color: #3B3B3B;padding-top:0.133333rem;">{$vp.friendTime}
									<!--<a onclick="phredo()" style="color: #039BE5;display:inline-block;padding-left:0.133333rem">更新</a>-->
								</p>
							</div>
						</div>
						<div class="main-right-bot">
							<div class="button clear">
								<if condition="$vp['master'] eq 1">
									<div class="buy" onclick="phbuy({$vp['photoBookId']},this)"><input style="display:none" value="">
									<input style="display:none" value="">
									<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_buy_btn_nor.png" style="width:100%;height:100%;"></div>
									<div class="edit" onclick="phedit({$vp['photoBookId']},this)"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_edit_btn_nor.png" style="width:100%;height:100%;"></div>
								<else/>
									<div class="buy"></div>
									<div class="edit" onclick="phedit({$vp['photoBookId']},this)">
										<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_edit_btn_nor.png" style="width:100%;height:100%;">
									</div>
								</if>
							</div>
						</div>
					</div>
				</section>
			</foreach>
			<section class="clear">
				<div class="main-left" onclick="wcTutorial(this)">
					<div class="photo_book" style="overflow: hidden;">
						<img src="__ROOT__/Apps/WebApp/View/default/images/tutorial/wechatbook_cover.png" class="img">
					</div>
				</div>
				<div class="main-right">
					<div class="main-right-top">
						<div class="icon"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_wechat_icon_nor.png" style="width:100%;height:100%;"></div>
						<div class="bookname">
							<a style="font-size:0.426667rem;color:#000;display:inline-block;margin-bottom:0.133333rem;">微信书教程</a>
						</div>
					</div>
					<div class="main-right-bot">
						<p class="readme">如何成为一个高手<br>我想你有必要进来看看</p>
						<div class="button clear">
							<div class="look_tutorial" onclick="wcTutorial(this)">
							<img src="__ROOT__/Apps/WebApp/View/default/images/look_tutorial.png" style="width:100%;height:100%;">
							</div>
						</div>
					</div>
				</div>
			</section>
			<section class="clear">
				<div class="main-left" onclick="phTutorial(this)">
					<div class="photo_book" style="overflow: hidden;">
						<img src="__ROOT__/Apps/WebApp/View/default/images/tutorial/photobook_cover.png" class="img">
					</div>
				</div>
				<div class="main-right">
					<div class="main-right-top">
						<div class="icon"><img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_photo_icon_nor.png" style="width:100%;height:100%;"></div>
						<div class="bookname">
							<a style="font-size:0.426667rem;color:#000;display:inline-block;margin-bottom:0.133333rem;">照片书教程</a>
						</div>
					</div>
					<div class="main-right-bot">
						<p class="readme">如何成为一个高手<br>我想你有必要进来看看</p>
						<div class="button clear">
							<div class="look_tutorial" onclick="phTutorial(this)">
							<img src="__ROOT__/Apps/WebApp/View/default/images/look_tutorial.png" style="width:100%;height:100%;">
							</div>
						</div>
					</div>
				</div>
			</section>
		</main>



		<footer>
			<div class="footer-center">
				<ul>
					<li>
						<a href="" style="color: #5AC6B7;">
							<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_is_making_icon_sel.png" style="width:0.72rem;height:0.72rem;padding-top:0.133333rem;">
							<br>正在制作
						</a>
					</li>
					<li>
						<a>
							<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_new_book_icon_nor.png" style="width:1.066667rem;height:1.066667rem;margin-top:-0.213333rem;">
							<br>选择忆书
						</a>
					</li>
					<li>
						<a onclick="myself()">
						<img src="__ROOT__/Apps/WebApp/View/default/images/my_bookshelf_me_nor.png" style="width:0.72rem;height:0.72rem;padding-top:0.133333rem;">
							<br>我的
						</a>
					</li>
				</ul>
				<div class="radius"></div>
			</div>


		</footer>
	</div>
</body>
<script type="text/javascript" src="__ROOT__/Apps/WebApp/View/default/js/public.js"></script>
<script>
	var WST = ThinkPHP = window.Think = {
		"ROOT"   : "__ROOT__",
		"APP"    : "__APP__",
		"PUBLIC" : "__PUBLIC__",
		"DEEP"   : "{:C('URL_PATHINFO_DEPR')}",
		"MODEL"  : ["{:C('URL_MODEL')}", "{:C('URL_CASE_INSENSITIVE')}", "{:C('URL_HTML_SUFFIX')}"],
		"VAR"    : ["{:C('VAR_MODULE')}", "{:C('VAR_CONTROLLER')}", "{:C('VAR_ACTION')}"],
		"DOMAIN" : "{:WSTDomain()}",
		"CITY_ID" : "{$currArea['areaId']}",
		"CITY_NAME" : "{$currArea['areaName']}",
		"DEFAULT_IMG": "{:WSTDomain()}/{$CONF['goodsImg']}",
		"MALL_NAME" : "{$CONF['mallName']}",
		"SMS_VERFY"  : "{$CONF['smsVerfy']}",
		"PHONE_VERFY"  : "{$CONF['phoneVerfy']}",
		"IS_LOGIN" :"{$WST_IS_LOGIN}",
		"WST_STYLE" :"{$WST_STYLE}"
	}

	var a = document.getElementsByClassName("shape")
	function wxbuy(goodsId,params){
		location.href = WST.U("WebApp/Orders/buylist",'goodsId='+goodsId);
	}

	function phbuy(photoBookId,params){
		location.href = WST.U("WebApp/Orders/buylist",'photoBookId='+photoBookId);
	}

	function wxedit(id){
		location.href = WST.U("WebApp/WxBooks/wxbook",'id='+id);
	};

	function wbedit(id,params){
		location.href = WST.U("WebApp/WbBooks/wbbook",'id='+id);
	};
	function qqedit(id,params){
		location.href = WST.U("WebApp/QqBooks/qqbook",'id='+id);
	};
	function phedit(id,params){
		location.href = WST.U("WebApp/PhotoBooks/edit",'pbId='+id);
	};
	function wxbook(){
		location.href = WST.U("WebApp/WxBooks/newbook");
//		$.ajax({
//			type: "get",//数据发送的方式（post 或者 get）
//			url: " {:U('WxBooks/addeditor')}",//要发送的后台地址
////			data:{'wxNumber':wxNumber},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
//			dataType: "json",//后台处理后返回的数据格式
//			success:function(data){
//				if(data.status==0){
//					$('<div>').appendTo('body').addClass('alert alert-success').html('微信书已存在').show().delay(1500).fadeOut();
//				}
//				else{
//					window.location.href = WST.U("WebApp/WxBooks/newbook");
//				}
//
//			}
//		})
	};

	function wcTutorial(){
		location.href = WST.U("WebApp/WxBooks/wechartutorial");
	}
	function phTutorial(){
		location.href = WST.U("WebApp/WxBooks/phtutorial");
	}


	function wbbook(){
		location.href = WST.U("WebApp/WbBooks/makefor");
	};
	function photoindex(){
		location.href = WST.U("WebApp/PhotoBooks/index");
	};

	function qqbook(){
		location.href = WST.U("WebApp/QqBooks/makefor");
	};
	function orderlist(){
		location.href = WST.U("WebApp/Orders/index");
	};
	function phbook(){
//		location.href = WST.U("WebApp/PhotoBooks/Index");
		location.href= WST.U('WebApp/PhotoBooks/goAgainCreate');
	};
function phOpen(id){
	location.href = WST.U("WebApp/PhotoBooks/Index",'photoBookId='+id);
}
function myself(){
   location.href = WST.U("WebApp/Orders/mine");
};
	function wxopenArea(){
		$('.wxredobook').show();
	}
	function wxcloseArea(){
		$('.wxredobook').hide();
	}
	function wxredo(){
		var wxNumber = $('.wxNum').val();
//		alert(wxNumber);
		$.ajax({
			type: "get",//数据发送的方式（post 或者 get）
			url: " {:U('WxBooks/updateing')}",//要发送的后台地址
			data:{'wxNumber':wxNumber},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
			dataType: "json",//后台处理后返回的数据格式
			success:function(data){
//				alert(data.status);
				$('.wxredobook').hide();
//				if(data.status==1){
				$('#wxnumber').text('更新中...')
				$('.wxpage').text('共0页')
				$('.wxbutton').remove();
//				}
			}
		})
	}



	function wbopenArea(i){
		$('.wbredobook_'+i).show();
	}
	function wbcloseArea(i){
		$('.wbredobook_'+i).hide();
	}
	function wbredo(date,i){


		$.ajax({
			type: "get",//数据发送的方式（post 或者 get）
			url: " {:U('WbBooks/updateing')}",//要发送的后台地址
			data:{'bookId':date},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
			dataType: "json",//后台处理后返回的数据格式
			success:function(data){
//				alert(data.status);
				$('.wbredobook_'+i).hide();
				$('#wbtext_'+i).text('更新中...');
				$('.wbpage_'+i).text('共0页')
				$('.wbbutton_'+i).hide();

			}
		})
	}


	function qqopenArea(j){
		$('.qqredobook_'+j).show();
	}
	function qqcloseArea(j){
		$('.qqredobook_'+j).hide();
	}
	function qqredo(date,j){


		$.ajax({
			type: "get",//数据发送的方式（post 或者 get）
			url: " {:U('QqBooks/updateing')}",//要发送的后台地址
			data:{'bookId':date},//要发送的数据（参数）格式为{'val1':"1","val2":"2"}
			dataType: "json",//后台处理后返回的数据格式
			success:function(data){
//				alert(data.status);
//				alert(data.status);
				$('.qqredobook_'+j).hide();
				$('#qqtext_'+j).text('更新中...');
				$('.qqpage_'+j).text('共0页')
				$('.qqbutton_'+j).hide();
			}
		})
	}







</script>
<script src="__ROOT__/Public/js/think.js"></script>


</html>